package ck.com.api;

import ck.com.dto.Dto;
import ck.com.pojo.*;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

public interface ComplementApi {

    @RequestMapping("getCompleteList")
    Dto<List<ComplementUtil>> getCompleteList();

    @RequestMapping("verify")
    Dto<BigDecimal> verify(@RequestParam(value = "goodsId") Integer goodsId);

    @RequestMapping("addOrder")
    Dto<Integer> addOrder(@RequestBody ComplementOrderUtil complementOrderUtil);

    @RequestMapping("updateCompleteList")
    Dto<List<ComplementUtil>> updateCompleteList(@RequestBody ArrayList<Integer> id);

    @RequestMapping("getOrderList")
    Dto<List<showOrderUtil>> getOrderList(@RequestBody Map<String,Object> params);

    @RequestMapping("updateStatus")
    Dto<Integer>  updateStatus(@RequestParam(value = "id",required = false) Integer id);

    @RequestMapping("getOne")
    Dto<List<ComplementDetail>> getOne(@RequestBody Map<String,Object> params);

    @RequestMapping("addPurchaseOrder")
    Dto<Integer> addPurchaseOrder(@RequestBody PurchaseorderUtil purchaseorderUtil);

    @RequestMapping("getOneDetail")
    Dto<List<ComplementDetail>> getOneDetail(@RequestParam(value = "replenishmentId") String replenishmentId);

    @RequestMapping("getEcharts")
    Dto<List<showOrderUtil>> getEcharts(@RequestBody Map<String,Object> params);
}
